import java.sql.*;
import java.util.Properties;

public class mysqlConnection {
	
	private static final String dbClassName = "com.mysql.jdbc.Driver";
	
	private static final String CONNECTION = "jdbc:mysql://localhost:3306/tradeCo";
	
	public static Connection connect() throws ClassNotFoundException,SQLException {
		Class.forName(dbClassName);
		
		Properties p = new Properties();
		p.put("user", "root");
		p.put("password", "password");
		
		Connection c = DriverManager.getConnection(CONNECTION, p);
		
		return c;
	}
}	
